package red.stu.pconstraint.engine.exception;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import red.stu.pconstraint.pojo.ExecutionLocation;

/**
 * 当前调用位置与流程预期位置不一致
 * @author yihrmc @stu.red
 * @date 2019/11/23 17:13
 */
public class NoSuchLocationException extends EngineException {

    public NoSuchLocationException() {
        super();
    }

    public NoSuchLocationException(@Nullable ExecutionLocation executionLocation, @NotNull ExecutionLocation currentLocation) {
        super("method[" + executionLocation + "]  target[" + currentLocation + "]");
    }

}
